package com.springboot.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.springboot.pojo.TeacherCity;
import com.springboot.pojo.TeacherPro;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface TeacherCityMapper extends BaseMapper<TeacherPro> {


    @Select(" select id,city from tea_pro_city pc join tea_city c on pc.city_id=c.id and pc.pro_id=#{id} ")
    List<TeacherCity> findById(Integer id);


}